package org.jsola.hr.dto.contract;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.contract.constant.EnterpriseRegType;
import org.jsola.core.dto.BaseDTO;
import org.jsola.core.validator.Const;

import javax.validation.constraints.NotNull;

import static org.jsola.contract.example.AccountExample.*;

/**
 * @author JanusMix
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【企业认证】的参数")
@Data
public class VerifyEnterpriseDTO extends BaseDTO {

    private static final long serialVersionUID = 8685036960926120307L;

    @ApiModelProperty(notes = "印章id", example = "1")
    @NotNull
    private Long sealId;

    @ApiModelProperty(notes = N_MEMBER_ID, example = E_MEMBER_ID, required = true)
    @NotNull
    private Long organizationId;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    private String companyName;

    @ApiModelProperty(notes = N_REG_TYPE, example = E_REG_TYPE, allowableValues = EnterpriseRegType.VALUES_STR)
    @Length(max = 20, message = M_REG_TYPE_MAX)
    @Const(constClass = EnterpriseRegType.class, message = M_REG_TYPE_ENUM_NOT_MATCH)
    private String regType;

    @ApiModelProperty(notes = N_ORGAN_CODE, example = E_ORGAN_CODE)
    @Length(max = 30, message = M_ORGAN_CODE_MAX)
    private String organCode;

    @ApiModelProperty(notes = N_LEGAL_NAME, example = E_LEGAL_NAME)
    @Length(max = 20, message = M_LEGAL_NAME_MAX)
    private String legalName;

    @ApiModelProperty(notes = N_AGENT_ID_NO, example = E_AGENT_ID_NO)
    @Length(max = 50, message = M_AGENT_ID_NO_MAX)
    private String agentIdNo;


}
